﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp.装饰器
{
    /// <summary>
    /// 2.1 基础订单 - 具体组件
    /// </summary>
    public class BasicOrder : IOrder
    {
        private readonly double _amount;

        public BasicOrder(double amount)
        {
            _amount = amount;
        }

        public double CalculateTotal()
        {
            return _amount;
        }
    }
}
